namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PUB_LMS_INDEX")]
    public partial class PUB_LMS_INDEX
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PUB_LMS_INDEX()
        {
            CONTRACT_QUALITY_DETAIL = new HashSet<CONTRACT_QUALITY_DETAIL>();
            CONTRACT_QUALITY_LIST = new HashSet<CONTRACT_QUALITY_LIST>();
        }

        [Key]
        [StringLength(40)]
        public string INDEX_ID { get; set; }

        [StringLength(50)]
        public string INDEX_NAME { get; set; }

        [StringLength(50)]
        public string INDEX_TYPE { get; set; }

        [StringLength(50)]
        public string INDEX_CODE { get; set; }

        [StringLength(50)]
        public string INDEX_UNIT { get; set; }

        public bool? IS_KKS { get; set; }

        [StringLength(50)]
        public string KKS_CODE { get; set; }

        public bool? AUDITED { get; set; }

        public int? EXTERNAL_ENTRY { get; set; }

        [StringLength(50)]
        public string INDEX_DISNAME { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<CONTRACT_QUALITY_DETAIL> CONTRACT_QUALITY_DETAIL { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<CONTRACT_QUALITY_LIST> CONTRACT_QUALITY_LIST { get; set; }
    }
}
